import request from "./api";

export function getQuesList(openid) {
  return request
    .get(`/bcs/assessment/list-page`, {
      page: 0,
      size: 10000,
      owner: openid,
    })
    .then(({ data: { content = [] } = {} }) => {
      let data = undefined;
      if (content?.length) {
        data = content.filter((item) => item?.status === "Stash")?.[0];
      }
      return data;
    });
}
